package com.jinpeng.hr.controller;

import com.jinpeng.common.controller.BaseController;
import com.jinpeng.hr.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/hr/organization")
public class DemoController extends BaseController {

    @Autowired
    DemoService demoService;


    @GetMapping()
    String demo() {
        System.out.println(2);
        System.out.println("service:" + demoService.queryAll().toString());
        return "hr/organization/demo";
    }
}
